class CreateChatMessages < ActiveRecord::Migration[5.2]
  def change
    create_table :chat_messages do |t|
      t.integer :chat_window_id
      t.integer :messageable_id
      t.string :messageable_type
      t.string :content
      t.integer :state, default: 0

      t.timestamps
    end
  end
end
